package com.leancloud.home.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;

import com.aries.ui.view.title.TitleBarView;
import com.leancloud.home.R;

import tech.com.commoncore.base.BaseTitleActivity;
import tech.com.commoncore.utils.OnNoDoubleClickListener;

/**
 * 赎回金额计算
 */
public class RedemptionActivity extends BaseTitleActivity {


    private EditText etRedemptionAmount;
    private EditText etNetWorth;
    private EditText etTheRedemptionRate;
    private Button btnStart;
    private Button btnAgain;
    private TextView tvRedemptionCommission;
    private TextView tvAvailableResources;

    @Override
    public void setTitleBar(TitleBarView titleBar) {
        titleBar.setTitleMainText("赎回金额计算");
    }

    @Override
    public int getContentLayout() {
        return R.layout.home_activity_redemption;
    }

    @Override
    public void initView(Bundle savedInstanceState) {

        //赎回份额
        etRedemptionAmount = (EditText) findViewById(R.id.et_redemption_amount);
        //单位基金净值
        etNetWorth = (EditText) findViewById(R.id.et_net_worth);
        //赎回费率
        etTheRedemptionRate = (EditText) findViewById(R.id.et_the_redemption_rate);
        //开始计算
        btnStart = (Button) findViewById(R.id.btn_start);
        //重新计算
        btnAgain = (Button) findViewById(R.id.btn_again);
        //赎回手续费
        tvRedemptionCommission = (TextView) findViewById(R.id.tv_redemption_commission);
        //实际可得资金
        tvAvailableResources = (TextView) findViewById(R.id.tv_available_resources);

        btnStart.setOnClickListener(new OnNoDoubleClickListener() {
            @Override
            public void onNoDoubleClick(View v) {

            }
        });

        btnAgain.setOnClickListener(new OnNoDoubleClickListener() {
            @Override
            public void onNoDoubleClick(View v) {

            }
        });


    }
}
